﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IrisMembership.DomainClasses
{
    public class Role
    {
        public virtual int Id { get; set; }
        public virtual string Name { get; set; }
        public virtual ICollection<User> Users { get; set; }
        public virtual ICollection<Permission> Permissions { get; set; }
        public virtual int? ParentRoleId { get; set; }
        public virtual Role ParentRole { get; set; }
        public virtual ICollection<Role> ChildrenRoles { get; set; }
    }
}
